package com.jd.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 小林同学
 * @version 1.0
 * @description: TODO
 * @date 2023/2/24 11:54
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {

    /**
     * 当前页
     * @author kabuda
     * @date 2023/2/18 17:53
     */

    private Integer currentPage;
    /**
     * 每页条数
     * @author kabuda
     * @date 2023/2/18 17:54
     */

    private Integer pageSize;

    public Integer getStart(){
        return (this.currentPage - 1) * pageSize;
    }

    private String keyword;
}
